home *** CD-ROM | disk | FTP | other *** search
- Path: fohnix.metronet.com!not-for-mail
- From: milam@fohnix.metronet.com (Stan Milam)
- Newsgroups: comp.lang.c
- Subject: Re: String manipulation routines for C
- Date: 2 Mar 1996 19:31:36 -0600
- Organization: Texas Metronet, Inc (login info (214/488-2590 - 817/571-0400))
- Message-ID: <4haspo$ags@fohnix.metronet.com>
- References: <4gio78$ipr@bart.rogerswave.ca> <4gntb5$i41@nw002.infi.net>
- NNTP-Posting-Host: fohnix.metronet.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Greg DiGiorgio (nngis@norfolk.infi.net) wrote:
- : In article <4gio78$ipr@bart.rogerswave.ca>, mfrisch@saturn.tlug.org
- : says...
- : >
- : > I am a (Turbo)Pascal programmer from way back, but now I have
- : moved
- : >to Unix and C. I am looking for a decent library of string manipulation
- : >functions like I am used to in TurboPascal (ie. Copy, Delete, etc.).
- : Can
- : >anybody direct me to the these?
-
- : Mike,
-
- : There are over 2 dozen standard, built-in functions for manipulating
- : strings in 'C' - way more than Pascal ever offered. The functions are
- : prototyped in an include file <string.h> and are explained in any 'C'
- : book. Following is a partial list. Please note that you must understand
- : 'C' strings and pointers to use the string functions.
-
- : stricmp - same as above, but case insensitive
- : strrev - reverse a string
- : itoa - xlat an integer to a string (like BASIC's STR fn)
-
- These are not standard ANSI functions. They may exist in your DOS C library,
- but more than likely they do *not* exist in a UNIX C library. I know you are
- enthusiastic and trying to help, but please be sure of what you write before
- posting. This kind of misinformation is sure to cause the original poster, and
- possibly others, hours of frustration and grief.
-
- : There are alot more, but for the newbie, they are not easy to use. Please
- : remember to learn about strings and pointers before you plunge too
- : deeply.
-
- Yes, there are more: what about strlen() which is possibly the most useful
- string function of all?
-
- Regards,
- Stan Milam.
-